<template>
	<div style="text-align: left;">
		<h2 style="color: orange;">稿件管理</h2>
		  <el-radio-group v-model="type">
		       <el-radio-button label="1">烘焙食谱</el-radio-button>
		       <el-radio-button label="2">烘焙视频</el-radio-button>
		       <el-radio-button label="3">行业资讯</el-radio-button>
		  </el-radio-group>
		  <el-button type="success" @click="post()">发布内容</el-button>
		 <!-- 数据列表-->
		 <el-table :data="contentArr">
			 <el-table-column prop="id" label="编号"></el-table-column>
			 <el-table-column prop="title" label="商品标题"></el-table-column>
			 <el-table-column prop="brief" label="商品摘要"></el-table-column>
			 <el-table-column prop="categoryName" label="商品类型"></el-table-column>
			 <el-table-column prop="img" label="商品封面">
				 
			 </el-table-column>
			 <el-table-column prop="viewCount" label="浏览量"></el-table-column>
			 <el-table-column prop="commentCount" label="评论量"></el-table-column>
			 <el-table-column label="操作" width="200px">
				 <el-button size="mini">修改</el-button>
				 <el-button size="mini" type="danger">删除</el-button>
			 </el-table-column>
		 </el-table>
	</div>
</template>

<script>
	export default {
		data(){
			
			return{
				type:1,
				contentArr: [
					{id:1001,title:'面包',brief:'这个面包做法很简单....',categoryName:'面包',img:'/imgs/baker1.jpg',viewCount:100,commentCount:200}
				]
			}
		},
		methods:{
			post(){
				this.$router.push('/personal/post')
			}
		}
	}
</script>

<style>
</style>